package com.ruihang.generalibrary.utils;

import java.util.List;

/**
 * Created by Administrator on 2017/6/16.
 */

public class ListUtils {

    public static <T> boolean isListValued(List<T> list) {
        return list != null && list.size() > 0;
    }

    public static int getTotalSize(List<?> l1, List<?> l2) {
        int re = 0;
        if (l1 != null) {
            re += l1.size();
        }
        if (l2 != null) {
            re += l2.size();
        }
        return re;
    }

    public static int getTotalSize(List<?> l1, List<?> l2, int other) {
        return getTotalSize(l1, l2) + other;
    }

}
